import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/manage',
  component: Layout,
  name: 'manager',
  meta: {
    title: '平台治理',
    icon: 'ep:compass',
  },
  children: [
    {
      path: 'config',
      name: 'config',
      component: () => import('@/views/manage/config.vue'),
      meta: {
        title: '配置管理',
        menu: true,
        breadcrumb: false,
        icon: 'ep:set-up',
        activeMenu: '/manage',
      },
    },
    {
      path: 'sqlManage',
      name: 'sqlManage',
      component: () => import('@/views/manage/sqlManage.vue'),
      meta: {
        title: 'SQL监控',
        menu: true,
        breadcrumb: false,
        icon: 'ep:connection',
        activeMenu: '/sys',
      },
    },
  ],
}

export default routes
